package com.ocom.accesservice.controller;

import com.ocom.accesservice.service.PersonnelInfoService;
import com.ocom.common.constant.AccessServiceUrl;
import com.ocom.common.resp.Result;
import com.ocom.common.utils.ResultUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description: 南华接口
 * @Author: 朱晖
 * @Date: 2022/6/6
 **/
@RestController
public class NhController {

	@Autowired
	PersonnelInfoService personnelInfoService;

	@PostMapping(AccessServiceUrl.URL_getNhResult)
	public Result getNH(Long comId){
		return ResultUtil.success(personnelInfoService.getNh(comId));
	}

	@PostMapping(AccessServiceUrl.URL_getNhCount)
	public Result getNhCount(Long comId){
		return ResultUtil.success(personnelInfoService.getNhCount(comId));
	}
}
